package com.gitee.gphomework.pattern.commandpattern;

import com.gitee.gphomework.pattern.commandpattern.invoker.FtpActiveModeClient;
import com.gitee.gphomework.pattern.commandpattern.invoker.FtpPassiveModeClient;

/**
 * Created on 2020/3/17
 * Title: 主类
 * Description: 主类
 * Copyright: Copyright(c) 2020
 * Company:
 *
 * @author yifeng
 */
public class MainClass {

    public static void main(String[] args) {

        // 主动模式下载
        System.out.println("===测试主动模式===");
        FtpActiveModeClient ftpActiveModeClient = new FtpActiveModeClient();
        ftpActiveModeClient.activeModeDownload();

        // 被动模式下载
        System.out.println("\n\n\n===测试被动模式===");
        FtpPassiveModeClient ftpPassiveModeClient = new FtpPassiveModeClient();
        ftpPassiveModeClient.passiveModeDownload();

    }

}
